﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<qlqa.Models.Form.OrderForm.OrderForm>" %>
<%@ Import Namespace="qlqa.Models.LinQ" %>

<div class="table-responsive">
    <table class="table table-bordered">
        <% if (Model.ListBanGhep != null)
           {
               if (Model.ListBanGhep.Any())
               {
                   %>
                   <tr>
                       <th colspan="3">Danh sách bàn ghép</th>
                   </tr>
                   <%
               }
           } %>
            <tbody>
            <% if (Model.ListBanGhep != null)
               {
                   if (Model.ListBanGhep.Any())
                   {
                       int stt = 1;
                       foreach (tb_Ban item in Model.ListBanGhep)
                       {
                    %>
                        <tr>
                            <td rowspan="3"><%= stt++ %></td>
                            <td>Bàn <span class="glyphicons glyphicons-circle_remove" style="color:red;cursor: pointer" onclick="XoaBanGhep(<%= item.Id %>);"></span></td>
                            <td><%= item.Ten %></td>
                        </tr>
                        <tr>
                            <td>
                                Ghi chú
                            </td>
                            <td>
                                <b><%= item.GhiChu %></b>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Tình trạng
                            </td>
                            <td>
                                <b>Bàn ghép</b>
                            </td>
                        </tr>
            <%
               }
           }
       } %>
        </tbody>
    </table>
</div>